function openwindow(title,html) {
	layui.use([ 'table', 'laytpl', 'layer', 'form', 'layedit' ], function() {
		var form = layui.form;
		var mylayer = layer.open({
			type : 1,
			title : title,
			skin : 'layui-layer-lan',
			anim : 5,
			shadeClose : false,
			//area : [ 'auto', '400px' ],
			offset : [ ($(window).height() / 8), $(window).width() / 4 ],
			content : '<div id="standardForm"></div>',
			btn : [ '提交', '取消' ],
			closeBtn : false,
			btn1 : function(index, layero) {
				$('#mybutton').click();
			},
			btn2 : function(index, layero) {
				layer.close(mylayer);
			}
		});
		var view = document.getElementById('standardForm');
		
		
		laytpl(getTpl).render({}, function(html) {
			view.innerHTML = html;
		});
		form.render();
		form.verify({
			pass : function(value) {
				if (value != $('input[name="passWord"]').val()) {
					return '两次密码不一致';
				}
			}
		});
	});
}